lint: don't use lambdas for non-lambda stuff#3
Conversation
It's confusing to use mathematical lambdas where you're not returning a value or doing math
|
Arrow functions in JS could be used in any circumstances, there are no obligatory rules to return value or do the math. |
Usefulness is not a great argument for code style.
There are many anti-semantic things you can do in JavaScript, but they're confusing and signal the wrong thing to the reader of the code. lambdas signal that you intend to return the evaluation of a mathematical expression in-line. That's what they're for. |
|
No longer relevant |
It's confusing to use mathematical lambdas where you're not returning a value or doing math